<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>后台管理</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<meta http-equiv="Cache-Control" content="no-store" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
	
	<link rel="stylesheet" href="${ctx}/statics/css/reset.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="${ctx}/statics/css/style.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="${ctx}/statics/css/validationEngine.jquery.css" media="screen"/>
	<link rel="stylesheet" href="${ctx}/statics/css/invalid.css" type="text/css" media="screen" />	
		
	<script type="text/javascript" src="${ctx}/statics/scripts/jquery-1.8.2.min.js" language="javascript"></script>
	<script type="text/javascript" src="${ctx}/statics/scripts/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="${ctx}/statics/scripts/facebox.js"></script>
	<script type="text/javascript" src="${ctx}/statics/scripts/jquery.wysiwyg.js"></script>
	<script type="text/javascript" src="${ctx}/statics/scripts/jquery.validationEngine-zh_CN.js"></script>
	<script type="text/javascript" src="${ctx}/statics/scripts/jquery.validationEngine.js"></script>
		<script type="text/javascript">  
			$(document).ready(function(){
				//$("#menu_id_1").click(function(){
					//alert(this.id)
				//	$(this).attr("class","nav-top-item current").siblings().addClass("nav-top-item")
				//});
				$(".nav-top-item").click(function(){
					$(".nav-top-item").removeClass("nav-top-item current").addClass("nav-top-item") ;
					//$(this).attr("class","nav-top-item current");
					$(this).addClass("nav-top-item current")
					
				});
				$(".tempclass").click(function(){
					$(".tempclass").removeClass("current").addClass("tempclass") ;
					$(this).addClass("current")
				});
				         
			});

			function logout(){
				parent.window.close();
	            window.open("${ctx}/logout");
			}
		</script> 
	</head>
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			<p></p>
			<!-- Logo (221px wide) -->
			<span style=" font-size: 25px;color: #fff;">后台管理系统</span>
		  	<p></p>
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				你好, <a href="#" title="Edit your profile">${sessionSysUser.name}</a>
				<!--  , you have <a href="#messages" rel="modal" title="3 Messages">3 Messages</a><br /> -->
				<br />
				<a href="#" title="View the Site">访问主页</a> | <a href="javascript:logout();" title="Sign Out">退出系统</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
				<c:forEach items="${menus}" var="menu" varStatus="i">
					<c:if test="${menu.parentId==0 && menu.type!=0}">
						<li><a href="${menu.url}" class="nav-top-item">${menu.name}</a>
						<ul>
					</c:if>
					<c:forEach items="${menus}" var="menu2" varStatus="i">
						<c:if test="${menu2.parentId==menu.id && menu2.type!=0}"><%-- type!=0 表示不需要在左侧显示菜单或权限 --%>
							<li><a href="${menu2.url}" class="tempclass" target="mainFrame">${menu2.name}</a></li>
						</c:if>
					</c:forEach>
					<c:if test="${menu.parentId==0 && menu.type!=0}">
					</ul>
					</li>
					</c:if>
				</c:forEach>
				
			</ul> <!-- End #main-nav -->
			
		</div></div> <!-- End #sidebar -->
		
	</div></body>
  

<!-- Download From www.exet.tk-->
</html>
